package cn.edu.scau.cmi.chenxiaoqin.exercise11;
import javax.swing.*;
import java.awt.*;
public class WindowActionEven extends JFrame{
	JTextField text;
	ReaderListen listener;
	public WindowActionEven() {
		init();
		setVisible(true);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	void init() {
		setLayout(new FlowLayout());
		text=new JTextField(10);
		listener=new ReaderListen();
		text.addActionListener(listener);
		add(text);
	}
}
